<?php
/**
 * Created by PhpStorm.
 * User: sunshine
 * Date: 2016/8/30
 * Time: 10:14
 */
require_once "Admin/Controller/Controller.php";
require_once "Admin/Model/IndexModel.php";
class IndexController extends Controller
{
    function __Construct(){
        parent::__Construct();

    }
    function index(){
        if (isset($_SESSION['admin']))
        $this->display();
    }
    function logout()
    {
        session_destroy();
        echo '<h2 style="font-family:微软雅黑;color: #03c2f9">注销成功!<br/></h2>';
        echo '<a href="index.php">如果没有跳转，请点这里跳转</a>';
        header("refresh:3;url='index.php'");
    }
}
?>